﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    //职工信息表
    public class EMEmployee
    {
        //数据唯一标识符
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }
        //姓
        [Required]
        [StringLength(20)]
        public string? FirstName { get; set; }
        [Required]
        [StringLength(30)]
        //名
        public string? LastName { get; set; }
        //年龄
        [Required]
        public int Age { get; set; }
        //性别
        [Required]
        public bool Gender { get; set; }
        //电话号码
        [StringLength(15)]
        public string? Number { get; set; }
        [Required]
        public int Postion { get; set; }
        //薪资
        [Required]
        public float Salary { get; set; }
        //参加工作日期
        [Required]
        public DateTime WorkingDate { get; set; }
        //注册时间
        [Required]
        public DateTime AddTime { get; set; }

    }
}
